import service from '@/utils/request';

// 测试接口
export function getTest(){
  return service({
    url:"/api",
    method: 'get'
  })
}


// 登录方法
export function getLogin(data) {
  return service({
    url: '/login',
    headers: {
      isToken: false
    },
    method: 'post',
    data: data
  })
}
// 登录方法
export function getCodeImg(username, password, code, uuid) {
  const data = {
    username :"admin",
    password:"123456"
  }
  return service({
    url: '/login',
    headers: {
      isToken: false
    },
    method: 'post',
    data: data
  })
}
export function listDeDept() {
    return service({
      url: '/getRouters',
      method: 'get'
    })
  }